package com.ccp.dev.system.model;

import com.ccp.dev.core.basic.model.BaseModel;

/**
 * 对象权限表 sys_obj_rights
 *
 * @author doufangzheng
 * @date 2019-03-22
 */
public class ObjRights extends BaseModel {
    /**
     * 权限类型：首页栏目模块
     */
    public static final String RIGHT_TYPE_INDEX_COLUMN = "indexColumn";
    /**
     * 权限类型：首页布局模块
     */
    public static final String RIGHT_TYPE_INDEX_LAYOUT = "indexLayout";

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 对象类型(模块分类)
     */
    private String objType;
    /**
     * 对象ID(模块数据ID)
     */
    private String objectId;
    /**
     * 被授权对象ID
     */
    private String ownerId;
    /**
     * 权限类型(0=用户；1=角色；2=组织)
     */
    private String rightType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getObjType() {
        return objType;
    }

    public void setObjType(String objType) {
        this.objType = objType;
    }

    public String getObjectId() {
        return objectId;
    }

    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public String getRightType() {
        return rightType;
    }

    public void setRightType(String rightType) {
        this.rightType = rightType;
    }
}
